//sub-category string to search for: 
  //<span class="forumlink"> <a href="viewforum.php?f=4" class="forumlink">MacAddict Readers</a><br /></span>
  
  dim i,n,pos,endPos as integer
  dim s,searchstring,quote as string 
  
  quote = chr(34)
  searchstring = quote + " class="+quote+"forumlink"+quote+">"
  pos = start 
  while (pos<len(content)) and not(userCancelled)
    pos = instr(pos,content,searchstring)
    if pos>0 then
      pos=pos+len(searchstring)
      endPos = instr(pos,content,"</a>")
      if endPos>0 then
        ForumSubNames.append mid(content,pos,endPos-pos)
        ForumSubPosition.append pos
        pos=endPos
      else
        pos=pos+1
      end if
    else
      pos = len(content)+1
    end if
  wend
  
  //find URLs
  searchstring = "<span class="+quote+"forumlink"+quote+"> <a href="+quote
  pos = start 
  while (pos<len(content)) and not(userCancelled)
    pos = instr(pos,content,searchstring)
    if pos>0 then
      pos=pos+len(searchstring)
      endPos = instr(pos,content,quote+" class="+quote+"forumlink"+quote+">")
      if endPos>0 then
        ForumSubURL.append mid(content,pos,endPos-pos)
        pos=endPos
      else
        pos=pos+1
      end if
    else
      pos = len(content)+1
    end if
  wend